const http = require('http')
const router =require('./route')
const server = http.createServer()


server.on('request',(req,res)=>{
    let {url} = req

    router(url,res)
})

server.listen(80,()=>{
    console.log("http://127.0.0.1")
})